<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                >

    <f:subview id="alunosLogados" rendered="#{fluxoExibicaoPrincipal.exibirUsuariosLogados}">
        <h:panelGrid columns="1" styleClass="center" >
            <h:form>
                <p:poll interval="60" listener="#{alunosLogadosManager.atualizaLista()}" update="tableUsers" /> 
                <h:dataTable   value="#{alunosLogadosManager.alunos}" var="alunos"  columnClasses="usuariosPrincipal,usuariosPrincipal" 
                               id="tableUsers">  
                    <h:column>
                        <h:graphicImage library="img" name="#{alunos.img}"/>
                    </h:column>
                    <h:column>
                        <h:outputText value="#{alunos.aluno}, " style="margin-left:10px" />
                        <h:outputText value="#{alunos.timeLogin}">
                            <f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="#{initParam['timezone']}"/>
                        </h:outputText>
                        <h:outputText value=", #{alunos.logs}" rendered="#{alunos.logs > 1}" />
                    </h:column>
                </h:dataTable> 
            </h:form>
        </h:panelGrid>
    </f:subview>
</ui:composition>
